package com.example.demo.service;


import com.example.demo.mapper.RoleMapper;
import com.example.demo.model.Result;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class RoleService {
    private RoleMapper roleMapper;

    public Result getAllRoles() {
        return Result.buildSuccess(roleMapper.selectList(null));
    }
}
